const express  = require("express");
const { auth } = require("../middleware/auth");
const { all, add, remove, edit, employee } = require("../controllers/employees");

const router = express.Router()

router.get('/', auth, all)
router.get('/:id', auth, employee)
router.post('/add', auth, add)
router.post('/remove/:id', auth, remove)
router.put('/edit/:id', auth, edit)

module.exports = router